package bugfixes;

public class MouseFix extends Fix{

	@Override
	public String fixed(String in) {
		
		in = in.replace(".pressed", ".isPressed()");
		in = in.replace(".present", ".isPresent()");
		
		in = in.replace(".getMousePressTime()", ".getPressTime()");
		
		in = in.replace(".getMouseX()", ".getX()");
		in = in.replace(".getMouseY()", ".getY()");
		
		// hopefully no one has named their Point variable "m"
		in = in.replace("m.x", "m.getX()");
		in = in.replace("m.y", "m.getY()");
		
		return in;
	}

}
